from numpy import random

class Generator:
    
    def gen(self, n=1):
        ip_list = random.randint(0, 256, size=(n, 4))
        ip = []

        for ip1 in ip_list:
            ip_str = "".join("%s" %ipN for ipN in ip1)
            ip.append(ip_str)

        return ip


if __name__ == "__main__":
    a = Generator()
    ip = a.gen(10)
    print(ip)
